package wei.qiang.ye.springbootapplicationdemo;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringbootApplicationDemoApplication {

	public static void main(String[] args) {
//	    SpringApplication.run(SpringbootApplicationDemoApplication.class, args);

        SpringApplication application = new SpringApplication(SpringbootApplicationDemoApplication.class);
        //关闭了Banner的打印
        application.setBannerMode(Banner.Mode.OFF);
        //设置应用环境为非WEB应用
        application.setWebApplicationType(WebApplicationType.NONE);
        //profiles指定为dev
        application.setAdditionalProfiles("dev");
        application.run(args);
	}

}
